﻿<html>
<head>
    <script src="javascript/TaskMenu.js" type="text/javascript"></script>
    <script>
        var taskMenu1;
        var taskMenu2;
        var taskMenu3;
        var taskMenu4;
        var taskMenu5;
        var taskMenu6;
        var taskMenu7;

        //-------- 打开网址 -------
        function openURL(URL) {
            //parent.openURL(URL);
            parent.window.frames[3].location.href = URL;
        }

        TaskMenu.setStyle("https://www.mooncrm.com/crm/include/taskmenu/Blue/BlueStyle.css");

        window.onload = function () {
            TaskMenu.setHeadMenuSpecial(true);
            TaskMenu.setScrollbarEnabled(true);
            //TaskMenu.setAutoBehavior(false);
            var name = "yangzb"; var user_name = "yangzb"; var org_name = "销售部"; item11 = new TaskMenuItem("部门: " + org_name, "https://www.mooncrm.com/crm/themes/OA/images/hello.gif", "openURL('/crm/index.php?module=Users&action=ListView&type=Org')");
            item12 = new TaskMenuItem("姓名: " + name, "https://www.mooncrm.com/crm/themes/OA/images/1.gif", "openURL('/crm/index.php?module=Users&action=ListView&type=ListUsers')");
            item13 = new TaskMenuItem("帐号: " + user_name, "https://www.mooncrm.com/crm/themes/OA/images/node_user.gif", "openURL('/crm/index.php?module=Users&action=ListView&type=ListUsers')");


            taskMenu1 = new TaskMenu("个人信息");
            taskMenu1.add(item11);
            taskMenu1.add(item12);
            taskMenu1.add(item13);
            taskMenu1.setBackground("https://www.mooncrm.com/crm/image/bg.gif");
            taskMenu1.init();

            para = '&year=2012&month=10&day=28&hour=22'; taskMenu4 = new TaskMenu("秘书台", '0');
            //item47 = new TaskMenuItem("首页old","https://www.mooncrm.com/crm/images/home.gif","openURL('/crm/modules/home/moon_home.php')");
            //taskMenu4.add(item47);
            item49 = new TaskMenuItem("首页", "https://www.mooncrm.com/crm/images/home.gif", "openURL('/crm/index.php?module=Homes&action=ListView&type=Home')");
            taskMenu4.add(item49);

            /*
            item41 = new TaskMenuItem("日程管理old","https://www.mooncrm.com/crm/themes/OA/images/calendar.gif","openURL('/crm/index.php?module=Calendars&action=Index&type=MyCalendars&view=day"+para+"')");
            taskMenu4.add(item41);
            */

            item42 = new TaskMenuItem("日程管理", "https://www.mooncrm.com/crm/themes/OA/images/calendar.gif", "openURL('/crm/index.php?module=Calendars&action=Index&type=MyCalendars&view=day" + para + "')");
            taskMenu4.add(item42);

            /*
            item41 = new TaskMenuItem("我的日程","https://www.mooncrm.com/crm/themes/OA/images/calendar.gif","openURL('/crm/index.php?module=Calendars&action=Index&type=MyCalendars&view=day"+para+"')");
            taskMenu4.add(item41);
            item42 = new TaskMenuItem("共享日程","https://www.mooncrm.com/crm/themes/OA/images/calendar.gif","openURL('/crm/index.php?module=Calendars&action=Index&type=SharedCalendars&view=day"+para+"')");
            taskMenu4.add(item42);
            item43 = new TaskMenuItem("日程列表","https://www.mooncrm.com/crm/themes/OA/images/calendar.gif","openURL('/crm/index.php?module=Calendars&action=ListView&type=Big&view=day"+para+"')");
            taskMenu4.add(item43);
            */
            item44 = new TaskMenuItem("审批列表", "https://www.mooncrm.com/crm/themes/OA/images/edit.gif", "openURL('/crm/index.php?module=Approves&type=ListApproves&action=ListView&apply_status=Wait&apply_type=All')");
            taskMenu4.add(item44);
            item45 = new TaskMenuItem("费用管理", "https://www.mooncrm.com/crm/themes/OA/images/Quotes.gif", "openURL('/crm/index.php?module=Expenses&action=ListView&type=Running')");
            taskMenu4.add(item45);
            /*
            item45 = new TaskMenuItem("日常费用","https://www.mooncrm.com/crm/themes/OA/images/Quotes.gif","openURL('/crm/index.php?module=Expenses&action=ListView&type=Running')");
            taskMenu4.add(item45);
            item45 = new TaskMenuItem("出差费用","https://www.mooncrm.com/crm/themes/OA/images/Quotes.gif","openURL('/crm/index.php?module=Expenses&action=ListView&type=Travel')");
            taskMenu4.add(item45);
            item45 = new TaskMenuItem("现金预支","https://www.mooncrm.com/crm/themes/OA/images/Quotes.gif","openURL('/crm/index.php?module=Expenses&action=ListView&type=CashAdv')");
            taskMenu4.add(item45);
            item45 = new TaskMenuItem("付款申请","https://www.mooncrm.com/crm/themes/OA/images/Quotes.gif","openURL('/crm/index.php?module=Expenses&action=ListView&type=PaidByCompany')");
            taskMenu4.add(item45);
            */

            item46 = new TaskMenuItem("工作报告", "https://www.mooncrm.com/crm/themes/OA/images/Reports.gif", "openURL('/crm/index.php?module=Reports&action=ListView&type=Sent')");
            taskMenu4.add(item46);
            /* maybe used later
            item47 = new TaskMenuItem("站内消息","https://www.mooncrm.com/crm/themes/OA/images/sms.gif","openURL('/crm/index.php?module=Smss&action=ListView&type=Inbox')");
            taskMenu4.add(item47);
            */
            item48 = new TaskMenuItem("内部公告", "https://www.mooncrm.com/crm/images/notify_new.gif", "openURL('/crm/index.php?module=Announces&action=ListView&type=Sent')");
            taskMenu4.add(item48);


            taskMenu4.init();


            taskMenu3 = new TaskMenu("客户管理", '0');
            item32 = new TaskMenuItem("我的客户", "https://www.mooncrm.com/crm/themes/OA/images/myaccount.gif", "openURL('/crm/index.php?module=Customers&action=ListView&type=MyCustomers')");
            item33 = new TaskMenuItem("共享客户", "https://www.mooncrm.com/crm/themes/OA/images/myaccount.gif", "openURL('/crm/index.php?module=Customers&action=ListView&type=SharedCustomers')");
            item34 = new TaskMenuItem("所有客户", "https://www.mooncrm.com/crm/themes/OA/images/myaccount.gif", "openURL('/crm/index.php?module=Customers&action=ListView&type=AllCustomers')");
            item35 = new TaskMenuItem("客户服务", "https://www.mooncrm.com/crm/themes/OA/images/myaccount.gif", "openURL('/crm/index.php?module=Customers&action=ListView&type=Services&search_act_type2=4')");
            item36 = new TaskMenuItem("客户投诉", "https://www.mooncrm.com/crm/themes/OA/images/myaccount.gif", "openURL('/crm/index.php?module=Customers&action=ListView&type=Advices&search_act_type2=5')");

            taskMenu3.add(item32);
            taskMenu3.add(item33);
            taskMenu3.add(item34);
            taskMenu3.add(item35);
            taskMenu3.add(item36);
            taskMenu3.init();

            taskMenu10 = new TaskMenu("联系人管理", '0');
            //item101 = new TaskMenuItem("联系人","https://www.mooncrm.com/crm/themes/OA/images/friends.gif","openURL('/crm/index.php?module=Contacts&action=ListView&view_kind=Big')");
            item101 = new TaskMenuItem("联系人", "https://www.mooncrm.com/crm/themes/OA/images/friends.gif", "openURL('/crm/index.php?module=Contacts&action=ListView&type=AllContacts')");
            item102 = new TaskMenuItem("联系人组", "https://www.mooncrm.com/crm/themes/OA/images/erp.gif", "openURL('/crm/index.php?module=Contacts&action=ListView&type=Group')");
            item103 = new TaskMenuItem("短信群发", "https://www.mooncrm.com/crm/themes/OA/images/mobile_sms.gif", "openURL('/crm/index.php?module=MSmss&action=ListView&type=Sent')");
            item104 = new TaskMenuItem("邮件群发", "https://www.mooncrm.com/crm/themes/OA/images/Emails.gif", "openURL('/crm/index.php?module=Emails&action=ListView&type=Sent')");

            taskMenu10.add(item101);
            taskMenu10.add(item102);
            //allowed
            taskMenu10.add(item103);

            taskMenu10.add(item104);
            taskMenu10.init();

            /*
            taskMenu8 = new TaskMenu("邮件短信",'0');
            item82 = new TaskMenuItem("收件箱","https://www.mooncrm.com/crm/themes/OA/images/email_open.gif","openURL('/crm/index.php?module=Emails&action=ListView&type=Inbox')");
            taskMenu8.add(item82);
            item81 = new TaskMenuItem("发件箱","https://www.mooncrm.com/crm/themes/OA/images/Emails.gif","openURL('/crm/index.php?module=Emails&action=ListView&type=Sent')");
            taskMenu8.add(item81);
		
            item84 = new TaskMenuItem("收信箱","https://www.mooncrm.com/crm/themes/OA/images/sms.gif","openURL('/crm/index.php?module=Smss&action=ListView&type=Inbox')");
            taskMenu8.add(item84);
            item83 = new TaskMenuItem("发信箱","https://www.mooncrm.com/crm/themes/OA/images/Shortmessage.gif","openURL('/crm/index.php?module=Smss&action=ListView&type=Sent')");
            taskMenu8.add(item83);
		
            taskMenu8.init();
            */

            taskMenu5 = new TaskMenu("销售管理", '0');
            item51 = new TaskMenuItem("销售机会", "https://www.mooncrm.com/crm/images/sale_manage.gif", "openURL('/crm/index.php?module=Sales&action=ListView&type=Opportunity')");
            taskMenu5.add(item51);
            item52 = new TaskMenuItem("销售目标", "https://www.mooncrm.com/crm/images/sale_manage.gif", "openURL('/crm/index.php?module=Goals&action=ListView&type=MyGoal')");
            taskMenu5.add(item52);
            item53 = new TaskMenuItem("销售自动化(SFA)", "https://www.mooncrm.com/crm/images/sale_manage.gif", "openURL('/crm/index.php?module=SFAs&action=ListView&type=SFAInstance')");
            taskMenu5.add(item53);

            item54 = new TaskMenuItem("报价管理", "https://www.mooncrm.com/crm/themes/OA/images/Price_List.gif", "openURL('/crm/index.php?module=Contracts&action=ListView&type=Quote')");
            taskMenu5.add(item54);
            item55 = new TaskMenuItem("合同管理", "https://www.mooncrm.com/crm/themes/OA/images/Contracts.gif", "openURL('/crm/index.php?module=Contracts&action=ListView&type=Contract')");
            taskMenu5.add(item55);

            item56 = new TaskMenuItem("发货申请", "https://www.mooncrm.com/crm/images/sale_manage.gif", "openURL('/crm/index.php?module=Contracts&action=ListView&type=Export')");
            taskMenu5.add(item56);
            item57 = new TaskMenuItem("开票申请", "https://www.mooncrm.com/crm/images/sale_manage.gif", "openURL('/crm/index.php?module=Contracts&action=ListView&type=Invoice')");
            taskMenu5.add(item57);

            item58 = new TaskMenuItem("应收账款", "https://www.mooncrm.com/crm/themes/OA/images/OpportunityReports.gif", "openURL('/crm/index.php?module=Contracts&action=ListView&type=Left')");
            taskMenu5.add(item58);
            item59 = new TaskMenuItem("回款计划", "https://www.mooncrm.com/crm/themes/OA/images/Quotes.gif", "openURL('/crm/index.php?module=Contracts&action=ListView&type=Paid')");
            taskMenu5.add(item59);

            taskMenu5.init();

            taskMenu50 = new TaskMenu("财务管理", '0');
            item501 = new TaskMenuItem("收款管理", "https://www.mooncrm.com/crm/images/Quotes.gif", "openURL('/crm/index.php?module=Paids&action=ListView&type=Left')");
            taskMenu50.add(item501);
            item502 = new TaskMenuItem("付款管理", "https://www.mooncrm.com/crm/images/Quotes.gif", "openURL('/crm/index.php?module=Payments&action=ListView&type=WaitPay&search_pay_status=Wait')");
            taskMenu50.add(item502);
            item503 = new TaskMenuItem("发票管理", "https://www.mooncrm.com/crm/images/Quotes.gif", "openURL('/crm/index.php?module=Invoices&action=ListView&type=Wait&search_invoice_status=1&subtype=0')");
            taskMenu50.add(item503);
            taskMenu50.init();



            taskMenu9 = new TaskMenu("仓库管理", '0');

            item92 = new TaskMenuItem("入库管理", "https://www.mooncrm.com/crm/images/Products.gif", "openURL('/crm/index.php?module=Imports&action=ListView&type=Verify&search_import_status=1')");
            taskMenu9.add(item92);

            //item91 = new TaskMenuItem("入库","https://www.mooncrm.com/crm/images/Products.gif","openURL('/crm/index.php?module=Storages&action=ListView&type=Import')");
            //taskMenu9.add(item91);
            item910 = new TaskMenuItem("发货管理", "https://www.mooncrm.com/crm/images/Products.gif", "openURL('/crm/index.php?module=Exports&action=ListView&type=Verify&search_export_status=2')");
            taskMenu9.add(item910);

            //item93 = new TaskMenuItem("盘点","https://www.mooncrm.com/crm/images/Products.gif","openURL('/crm/index.php?module=Storages&action=ListView&type=Adjust')");
            //taskMenu9.add(item93);
            item99 = new TaskMenuItem("库存管理", "https://www.mooncrm.com/crm/images/Products.gif", "openURL('/crm/index.php?module=Storages&action=ListView&type=Storage')");
            taskMenu9.add(item99);
            item911 = new TaskMenuItem("退货管理", "https://www.mooncrm.com/crm/images/Products.gif", "openURL('/crm/index.php?module=Returns&action=ListView&type=FromSale&subtype=1')");
            taskMenu9.add(item911);
            taskMenu9.init();

            taskMenu6 = new TaskMenu("产品管理", '0');

            item61 = new TaskMenuItem("产品列表", "https://www.mooncrm.com/crm/themes/OA/images/Products.gif", "openURL('/crm/index.php?module=Products&action=ListView&type=ListProducts')");
            taskMenu6.add(item61);
            //allowed
            item62 = new TaskMenuItem("产品结构", "https://www.mooncrm.com/crm/themes/OA/images/ProductCategories.gif", "openURL('/crm/index.php?module=Products&action=ListView&type=Class')");
            taskMenu6.add(item62);

            taskMenu6.init();

            taskMenu11 = new TaskMenu("采购管理", '0');
            item111 = new TaskMenuItem("采购订单", "https://www.mooncrm.com/crm/themes/OA/images/Price_List.gif", "openURL('/crm/index.php?module=Buys&action=ListView&type=Order')");
            taskMenu11.add(item111);

            item112 = new TaskMenuItem("入库申请", "https://www.mooncrm.com/crm/themes/OA/images/Contracts.gif", "openURL('/crm/index.php?module=Buys&action=ListView&type=Import')");
            taskMenu11.add(item112);

            item113 = new TaskMenuItem("采购发票", "https://www.mooncrm.com/crm/images/Quotes.gif", "openURL('/crm/index.php?module=Buys&action=ListView&type=Invoice')");
            taskMenu11.add(item113);
            item114 = new TaskMenuItem("供应商管理", "https://www.mooncrm.com/crm/images/sale_manage.gif", "openURL('/crm/index.php?module=Buys&action=ListView&type=Customer')");
            taskMenu11.add(item114);
            taskMenu11.init();

            taskMenu7 = new TaskMenu("帐号管理", '0');

            item71 = new TaskMenuItem("帐号列表", "https://www.mooncrm.com/crm/themes/OA/images/node_user.gif", "openURL('/crm/index.php?module=Users&action=ListView&type=ListUsers')");
            taskMenu7.add(item71);
            item72 = new TaskMenuItem("组织结构", "https://www.mooncrm.com/crm/themes/OA/images/Teams.gif", "openURL('/crm/index.php?module=Users&action=ListView&type=Org')");
            taskMenu7.add(item72);
            item73 = new TaskMenuItem("权限模板", "https://www.mooncrm.com/crm/themes/OA/images/License.gif", "openURL('/crm/index.php?module=Users&action=ListView&type=PrvTemplate')");
            taskMenu7.add(item73);

            taskMenu7.init();

            taskMenu8 = new TaskMenu("统计分析", '0');

            item81 = new TaskMenuItem("综合信息", "https://www.mooncrm.com/crm/image/chart.gif", "openURL('/crm/index.php?module=SummaryStats&action=ListView&type=Total')");
            taskMenu8.add(item81);

            item88 = new TaskMenuItem("销售目标", "https://www.mooncrm.com/crm/image/chart.gif", "openURL('/crm/index.php?module=GoalStats&action=ListView&type=Total')");
            taskMenu8.add(item88);

            item86 = new TaskMenuItem("客户统计", "https://www.mooncrm.com/crm/image/chart.gif", "openURL('/crm/index.php?module=CusStats&action=ListView&type=Distribution&pagesize=1')");
            taskMenu8.add(item86);
            /*
            item81 = new TaskMenuItem("我的业务","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/index.php?module=Charts&action=ListView&type=User')");
            taskMenu8.add(item81);
            */
            item82 = new TaskMenuItem("销售机会", "https://www.mooncrm.com/crm/image/chart.gif", "openURL('/crm/index.php?module=OppoStats&action=ListView&type=Distribution')");
            taskMenu8.add(item82);
            item83 = new TaskMenuItem("合同统计", "https://www.mooncrm.com/crm/image/chart.gif", "openURL('/crm/index.php?module=ContractStats&action=ListView&type=Total')");
            taskMenu8.add(item83);
            item84 = new TaskMenuItem("客服统计", "https://www.mooncrm.com/crm/image/chart.gif", "openURL('/crm/index.php?module=ServiceStats&action=ListView&type=Total')");
            taskMenu8.add(item84);
            item85 = new TaskMenuItem("费用统计", "https://www.mooncrm.com/crm/image/chart.gif", "openURL('/crm/index.php?module=ExpenseStats&action=ListView&type=Total')");
            taskMenu8.add(item85);
            item89 = new TaskMenuItem("产品统计", "https://www.mooncrm.com/crm/image/chart.gif", "openURL('/crm/index.php?module=ProductStats&action=ListView&type=SaleNum&pagesize=1')");
            taskMenu8.add(item89);

            /*
            item83 = new TaskMenuItem("测试1","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/email/moon_listview_email_test_xl.html')");
            taskMenu8.add(item83);
            item84 = new TaskMenuItem("测试2(listview_demo)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/email/moon_listview_email_demo.html')");
            taskMenu8.add(item84);
            item85 = new TaskMenuItem("测试3(listview_template)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/email/moon_listview_template.html')");
            taskMenu8.add(item85);
            item86 = new TaskMenuItem("测试4(listview:MyCustomers)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/email/moon_listview.php?module=Customers&action=ListView&type=MyCustomers')");
            taskMenu8.add(item86);
            item87 = new TaskMenuItem("测试5(editview_demo:Emails)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/email/moon_editview_email_demo.html')");
            taskMenu8.add(item87);
            item88 = new TaskMenuItem("测试6(editview_email_template)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/email/moon_editview_email_template.html')");
            taskMenu8.add(item88);
            item89 = new TaskMenuItem("测试7(detailview_email_template)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/email/moon_detailview_email_template.html')");
            taskMenu8.add(item89);
            item810 = new TaskMenuItem("测试8(editview_customer_template)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/customer/moon_editview_customer_template.html')");
            taskMenu8.add(item810);
            item811 = new TaskMenuItem("测试9(editview_customer_v2)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/customer/moon_editview_customer_v2.php?module=Customers&type=MyCustomers&action=AddView')");
            taskMenu8.add(item811);

            item812 = new TaskMenuItem("测试10(editview)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/customer/moon_editview.php?module=Customers&type=MyCustomers&action=AddView')");
            taskMenu8.add(item812);

            item813 = new TaskMenuItem("测试11(editview)","https://www.mooncrm.com/crm/image/chart.gif","openURL('/crm/modules/customer/moon_detailview.php?module=Customers&type=MyCustomers&action=AddView')");
            taskMenu8.add(item813);
            */
            taskMenu8.init();

            taskMenu100 = new TaskMenu("控制面板", '0');

            item1001 = new TaskMenuItem("个人设置", "https://www.mooncrm.com/crm/images/Administration.gif", "openURL('/crm/index.php?module=Personals&action=ListView&type=MyInfo')");
            taskMenu100.add(item1001);
            //item1002 = new TaskMenuItem("公司设置","https://www.mooncrm.com/crm/images/Administration.gif","openURL('/crm/temp/test1.html')");
            item1002 = new TaskMenuItem("公司设置", "https://www.mooncrm.com/crm/images/Administration.gif", "openURL('/crm/index.php?module=Companys&action=ListView&type=CompanyInfo')");
            taskMenu100.add(item1002);
            item1003 = new TaskMenuItem("数据日志", "https://www.mooncrm.com/crm/images/Administration.gif", "openURL('/crm/index.php?module=Recycles&action=ListView&type=ListRecycles')");
            taskMenu100.add(item1003);
            item1004 = new TaskMenuItem("系统日志", "https://www.mooncrm.com/crm/images/Administration.gif", "openURL('/crm/index.php?module=Recycles&action=ListView&type=SystemLog')");
            taskMenu100.add(item1004);

            taskMenu100.init();

            taskMenu101 = new TaskMenu("回收站", '0');

            item1011 = new TaskMenuItem("回收站", "https://www.mooncrm.com/crm/images/AllRSS.gif", "openURL('/crm/index.php?module=RecyclesOnly&action=ListView&type=ListRecyclesOnly')");
            taskMenu101.add(item1011);

            taskMenu101.init();
        }
    </script>
</head>
</html>
